package com.team7.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.team7.entity.Course;
import com.team7.vo.CourseVo;
import com.team7.vo.UpdateCoursesVo;
import org.apache.ibatis.annotations.Param;

/**
 * @program: team7-object
 * @description:
 * @author: 田宏洋
 * @create: 2021-10-19 20:10
 **/
public interface CourseDao extends BaseMapper<Course> {
    Page<CourseVo> findCourseWithPass(@Param("page") Page<CourseVo> page, @Param("ew") QueryWrapper ew, @Param("id") String id);

    int updateCourse(UpdateCoursesVo updateCoursesVo);

    int changeStauts(String id, String status);

    Page<Course> findCourseByTeacherMobile(@Param("page")Page<Course> objectPage,@Param("id") String id, @Param("checkStatus")String checkStatus);

    Page<Course> findCourseByTeacherId(Page<Course> objectPage, @Param("ew") QueryWrapper<Course> objectQueryWrapper);

    Page<CourseVo> FondfindCourseWithPass(Page<CourseVo> objectPage,  @Param("ew") QueryWrapper<CourseVo> objectQueryWrapper);
}
